package crazy.tree;

public class TwoLinkBInTreeTest
{
	public static void main(String[] args)
	{
		TwoLinkBinTree<String> binTree = new TwoLinkBinTree<String>("root");
		TwoLinkBinTree.TreeNode tn1 = binTree.addNode(binTree.root(), "2nd left", true);
		TwoLinkBinTree.TreeNode tn2 = binTree.addNode(binTree.root(), "2nd right", false);
		TwoLinkBinTree.TreeNode tn3 = binTree.addNode(tn2, "3rd left", true);
		TwoLinkBinTree.TreeNode tn4 = binTree.addNode(tn2, "3rd right", false);
		TwoLinkBinTree.TreeNode tn5 = binTree.addNode(tn3, "4th left", true);
		
		System.out.println(binTree.leftChild(tn2));
		System.out.println(binTree.rightChild(tn2));
		System.out.println(binTree.deep());
	}
}
